Enner Valencia scored twice, as well as a goal ruled offside, as Ecuador condemned Qatar to the first ever opening game loss for the hosts of a World Cup.